<template>
  <router-view></router-view>
</template>

<script setup lang="ts">
import { siteTitle, slogan, enSlogan, icon } from "@/conf/global";
import { userStoreModel } from "@/stores/user/index.ts";
import { loadTheme } from "@/components/common/theme/index";
const userStore = userStoreModel();
userStore.loadUserinfo();
loadTheme();
if (siteTitle) {
  document.title = siteTitle;
}
// if (icon) {
//   const i = document.querySelector(`link[rel="icon"]`);
//   i?.setAttribute("href", icon);
// }
</script>
